package model;

/**
	 * This Class is a Buy Photo Or Sample Model which Saves Purchase Details for Customer .
	 * @author Tal
	 *
	 */

	public class BuyPhotoOrSampleModel 
	{		
			
			/** The uid. */
			private int uid;
			
			/** The credit n. */
			private String creditN;
			
			/** The ccv. */
			private int ccv;
			
			/** The expire. */
			private String expire;	
			
			/** The type. */
			private String type;

		
			/**
			 * Instantiates a new buy photo or sample model.
			 */
			public BuyPhotoOrSampleModel()
			{
		       
				this.uid=0;
				this.creditN="0";
				this.ccv=0;
				this.expire="";	
			    this.type="";
			}
				
			
			
			
			/**
			 * Instantiates a new buy photo or sample model.
			 *
			 * @param uid the uid
			 * @param creditN the credit n
			 * @param ccv the ccv
			 * @param expire the expire
			 * @param type the type
			 */
			public BuyPhotoOrSampleModel(int uid, String creditN, int ccv, String expire,String type)
			{
				this();
				this.uid=uid;
				this.creditN=creditN;
				this.ccv=ccv;
				this.expire=expire;
				this.type=type;
			
			}
			
			
			/**
			 * This method returns customer id .
			 * @return int uid.
			 */
				public int getUID() {
					return this.uid;
				}

			/**
			 * This method sets new customer id to customer .
			 *
			 * @param cusID the new uid
			 */
				public void setUID(int cusID) {
					this.uid = cusID;
				}

					
			/**
			 * This method returns Credit Number.
			 * @return String creditN.
			 */
				public String getCreditN() {
					return this.creditN;
				}

			/**
			 * This method sets new Credit Number.
			 * @param creditNum - new credit number.
			 */
				public void setCreditN(String creditNum) {
					this.creditN = creditNum;
				}
						
			/**
			  * This method returns CCV.
			  * @return int ccv.
			 */
				public int getCCV() {
					return  this.ccv; 
				}
				
			
			/**
			  * This method sets new ccv.
			  * @param CCV - new ccv .
			  */
		    	public void setCCV(int CCV) {
				this.ccv = CCV;
			    }
		    	

				/**
				  * This method returns subscribe expiration .
				  * @return String expire.
				 */
				
				public String getExpire() {
					return this.expire; 
				}
				
				/**
				 * This method get String status .
				 *
				 * @param Expire - new expire
				 */
		    	
		    	public void setExpire(String Expire)
		    	{
		    		this.expire=Expire;
		    	}
		    	
		    	
				/**
				 * Gets the type.
				 *
				 * @return the type
				 */
				public String getType() {
					return this.type; 
				}
				
			
		    	
		    	/**
		    	 * Sets the type.
		    	 *
		    	 * @param type the new type
		    	 */
		    	public void setType(String type)
		    	{
		    		this.type=type;
		    	}
		    	
		    	/**
	    		 * This method toString-all vars of class.
	    		 *
	    		 * @return the string
	    		 */
		    	
		    	public String toString(){
		    		return "Uid:  "+ getUID()  + "\nCredit Number:  " + getCreditN() + "\nCCV: " + getCCV() + "\nExpiration:  " + getExpire()+ "\nCredit Card Type:   "+getType();
		    	}


	

}
